package cn.tedu.csmall.stock.webapi.until;

import cn.tedu.csmall.commons.pojo.stock.dto.StockReduceCountDTO;
import cn.tedu.csmall.commons.restful.JsonResult;
import cn.tedu.csmall.commons.restful.ResponseCode;
import com.alibaba.csp.sentinel.slots.block.BlockException;

//限流类
public class Block {

    public static JsonResult blockFunc (StockReduceCountDTO
                                                stockReduceCountDTO,
                                        BlockException e){

        return JsonResult.failed(ResponseCode.BAD_REQUEST,"限流了");
    }

}
